| lcTIN_PtypeGetNext | Home |
|
HANDLE lcTIN_PtypeGetNext ( HANDLE hTIN, HANDLE hPtype ); |
| hTIN | |
| Handle to a TIN object. | |
| hPtype | |
| Handle to a TIN point type. | |
|
Handle to the point type that is placed after hPtype in the list. If there are no point types after hPtype, the function returns NULL. |
| lcTIN_PtypeGetFirst |
// get name and color of all point types
HANDLE hTIN, hPtype;
WCHAR szName[256];
int Color;
hTIN = lcBlockGetTIN( hBlock, L"Demo TIN" );
if (hTIN != 0){
hPtype = lcTIN_PtypeGetFirst( hTIN );
while( hPtype != 0 ){
memset( szName, 0, sizeof(szName) );
wcsncpy( szName, lcPropGetStr( hPtype, LC_PROP_TINPTYPE_NAME ), 255 );
Color = lcPropGetInt( hPtype, LC_PROP_TINPTYPE_COLOR );
// get next point type
hPtype = lcTIN_PtypeGetNext( hTIN, hPtype );
}
}